console.log('global start')

setTimeout(()=>{
  console.log('setTimeOut')
},0)

Promise.resolve()
  .then(()=>{
    console.log('promise1')
  })
  .then(()=>{
    console.log('promise2')
  })
  .then(()=>{
    console.log('promise3')
  })

console.log('global end')